{extend name="$member_style_layout" /}

{block name="title"}短消息{/block}
{block name="content"}
{include file="msg/menu" /}
<style>
.ListContainer{
	min-height:700px;
}
.CommentList{
	border-top:#DDD solid 1px;
	border-bottom:#DDD solid 1px;
	margin:10px auto;
	background:#FFF;
	font-size:14px;
}
.CommentList .title{
	padding:5px 10px;
	line-height:20px;
}
.CommentList .info .UserTime{
	height:20px;
	line-height:20px;
	padding:0 10px;
	overflow:hidden;
	text-align:right;
	color:#999;
}
.CommentList .info .UserTime .userL{
	float:left;
}
.CommentList .info .UserTime .timeR{
	float:right;
}
.CommentList .info .CommentSubmits{
	border-top:#DDD dotted 1px;
	text-align:center;
	padding:0 5px 5px 5px;
	margin-top:5px;
}
.CommentList .info .CommentSubmits a{
	display:inline-block;
	line-height:25px;
	padding:0 10px;
	border:#DDD solid 1px;
	margin:5px 5px 0 5px;
	color:#666;
}	
</style>
<script>$('.fa-share-square-o').addClass('blue');</script>
<div class="ListContainer">	 
{volist name="listdb" id="rs"}
    <div class='CommentList'>
		<div class='title'>
			<a href="{:urls('showsend',['id'=>$rs['id']])}">{$rs.title}</a>
		</div>
		<div class='info'>
			<div class='UserTime'><span class='userL'>
	接收者：<a href="{:get_url('user',['uid'=>$rs['touid']])}" target="_blank">{$rs.to_username}</a>
			</span><span class='timeR'>{$rs.create_time}</span></div>
			<div class='CommentSubmits'><span class='state'>
	{eq name="$rs.ifread" value="0"}
			<span style='color:red;'>未读</span>
	{else /}
	已读
	{/eq}</span> 
	
	{eq name="$rs.ifread" value="0"}<a href="{:urls('delete',['id'=>$rs['id']])}">删除</a>{/eq} 
	
	<a href="{:urls('add',['uid'=>$rs['touid']])}">补充回复</a></div>                
		</div>
    </div>
{/volist}
	<div class="Showpage">{$pages}</div>
</div>


{/block}